// const api = {
//   Login: '/user/login',
//   UserInfo: '/user/userinfo',
//   UserName: '/user/name'
// }

// export default api
import request from '@/utils/request'
import axios from 'axios'
export function postHandle(url, data) {
  return request({
    url: url,
    method: 'post',
    data:{
  tenantCode: 'T000010',
    ...data
    }
  })
}

export function getHandle(url, params) {
  return request({
    url,
    method: 'get',
    params:{
       tenantCode: 'T000010',
      ...params
    }
  })
}

export function upload(params) {
  params.append('appId', 'app017')
  const config = {
    headers: { // 添加请求头
      'Content-Type': 'multipart/form-data'
    }
  }
  const url = '/fms/api/upload'
  return axios.post(url, params, config)
}
// 获取展会成员信息
export function queryExhibitionMember(id) {
  return request({
    url: '/venues/api/exhibitionManage/exhibitionInfo/queryExhibitionMember',
    method: 'get',
    params: {
      id
    }
  })
}
